#ifndef ITEM_H
#define ITEM_H

#include "boost/shared_ptr.hpp"

// Based off http://www.gamedev.net/reference/articles/article2163.asp.
class Item
{
public:
	Item();
	Item(int id);
	virtual ~Item();

    Item& operator=(const Item& rhs);

	friend bool operator==(const Item& lhs, const Item& rhs);
    friend bool operator<(const Item& lhs, const Item& rhs);
    
    int getId() const;
protected:
    int id;
    short usesLeft;
};

typedef boost::shared_ptr<Item> ItemPtr;

#endif